package com.pms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pms.dao.BatchMapper;
import com.pms.domain.Batch;
import com.pms.service.BatchService;

@Service
public class BatchServiceImpl implements BatchService {
	@Autowired
	BatchMapper batchMapper;

	@Override
	public int insertBatch(Batch batch) {
		return batchMapper.insertBatch(batch);
	}

	@Override
	public Batch selectByBatchCode(String batchcode) {
		return batchMapper.selectByBatchCode(batchcode);
	}

	@Override
	public void updateBatch(Batch batch) {
		batchMapper.updateBatch(batch);
	}

	@Override
	public List<Batch> getAll() {
		return batchMapper.getAll();
	}

	@Override
	public void deleteBatch(String batchcode) {
		batchMapper.deleteBatch(batchcode);
	}

}
